app.controller('userCenterCtrl', ['$scope', function($scope) {
    
	//刷新用户信息
	AQ.callAQ("refreshUserInfo.do", null, function(result) {
		var User = result[1];
		User.identityPic = DIC.IdentityPic[User.identityLevel];
		User.vipPic = DIC.VipPic[User.vip];
		
		$.cookie("userName", User.userName, {expires: 30});
		$.cookie("User", JSON.stringify(User));
		
		$scope.$apply(function(){
			$scope.User = User;
			$scope.address = $.parseJSON(User.address);
		});
	}, function(err, code){
		console.log(err + "["+ code +"]");
	});

}]);


/**
 * 更换联系QQ
 */
function changeQQ() {
	Utils.msgDialog("刷手如需更换QQ，请联系飞钻网：运营QQ1121248482申请更换！");
}